<?php
include ("..model/configuration.php");
include ("..model/function.php");
if (isset($_SESSION['username']) and isset($_SESSION['password'])){

?>
<form name="obat_add" id="obat_add" action="obat_result.php" method="post">

<table width="98%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="250">ID Obat</td>
    <td width="395"><input type="text" name="id_obat"  id="id_obat" size="20"/></td>
  </tr>
   <tr>
    <td width="250">Nama Obat</td>
    <td width="395"><input type="text" name="nama_obat"  id="nama_obat" size="50"/></td>
  </tr>
   <tr>
    <td width="250">Stok</td>
    <td width="395"><input type="number" name="stok"  id="stok" size="50"/></td>
  </tr>
   <tr>
    <td width="250">Tanggal Masuk</td>
    <td width="395"><input type="date" name="tgl_masuk"  id="tgl_masuk" /></td>
  </tr>
	<tr>
    <td width="250">Harga Beli</td>
    <td width="395"><input type="text" name="harga_beli"  id="harga_beli" size="50"/></td>
  </tr>
	<tr>
    <td width="250">Expired Date</td>
    <td width="395"><input type="date" name="expired_date"  id="expired_date" /></td>
  </tr>
	<tr>
    <td width="250">Details Obat</td>
    <td width="395"><input type="text" name="detil_obat"  id="detil_obat" size="50"/></td>
  //</tr>
   //<tr>
  //  <td width="250">Gambar</td>
  //  <td width="395"><input type="file" name="gambar"  id="gambar" /></td>  
  //</tr>
	<tr>
    <td width="250">Status</td>
    <td width="395"><input type="text" name="status"  id="status" size="100"/></td>
  </tr>
   <tr>
    <td width="250">Satuan</td>
    <td width="395"><input type="text" name="satuan"  id="satuan" size="100" /></td>  
  </tr>
	<tr>
    <td width="250">Bentuk</td>
    <td width="395"><input type="text" name="bentuk"  id="bentuk" size="100"/></td>
  </tr>
   <tr>
    <td width="250">Harga Jual</td>
    <td width="395"><input type="text" name="harga_jual"  id="harga_jual" size="100" /></td>
  </tr>
	<tr>
    <td width="250">Aturan Resep</td>
    <td width="395"><input type="text" name="aturan_resep"  id="aturan_resep" size="100"/></td>
  </tr>
   <tr>
    <td width="250">Dosis Resep</td>
    <td width="395"><input type="text" name="dosis_resep"  id="dosis_resep" size="100" /></td>

</tr>
  <tr>
    <td><input type="submit" name="obat_add" value="SIMPAN"></td>
  </tr>
</table> </form>
<?php
}else{
header("Location:../administrator/test.html");	
}
?>
